﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "IEvaluationCriteria" here, you must also update the reference to "IEvaluationCriteria" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IEvaluationCriteria
    {
        [OperationContract]
        int EvaluationCriteria_Using(int EvaluationCriteriaID);

        [OperationContract]
        DataSet EvaluationCriteria_GetAll();

        [OperationContract]
        EvaluationCriteriaInfo EvaluationCriteria_GetInfo(int ECID);

        [OperationContract]
        DataSet EvaluationCriteria_GetList( out int ItemCount,int currentPage, int pageSize);

        [OperationContract]
        int EvaluationCriteria_Insert(EvaluationCriteriaInfo eInfo);

        [OperationContract]
        bool EvaluationCriteria_Update(EvaluationCriteriaInfo eInfo);

        [OperationContract]
        bool EvaluationCriteria_Delete(int ECID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class EvaluationCriteriaInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        bool _Probation;
        [DataMember]
        public bool Probation
        {
            get { return _Probation; }
            set { _Probation = value; }
        }
        bool _Working;
        [DataMember]
        public bool Working
        {
            get { return _Working; }
            set { _Working = value; }
        }
        string _Description;
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
    }
   
}
